package com.ygxsk.carhome.ui.park;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.entity.node.BaseExpandNode;
import com.chad.library.adapter.base.entity.node.BaseNode;
import com.ygxsk.carhome.response.ParkingLicenseBean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/*
 * @Author:itchenqi175@163.com
 * @Time:2024/1/6  10:18
 * @Description:标题 第一层标题
 */
public class ParkingSpaceBean extends BaseExpandNode {

    /**
     * 小区id
     */
    private String communityId;

    /**
     * 车位名称 这里应该是全称： 盛邦花园六区-B6-002
     */
    private String parkSpaceStr;

    /**
     * 具体的区域信息，不带小区的
     */
    private String parkingSpaceNo;

    /**
     * 车位ID信息
     */
    private String parkingSpaceId;

    private List<BaseNode> childNode = new ArrayList<>();

    /**
     * 车牌的列表内容,内侧列表。
     */
    private List<ParkingLicenseBean> carNoList = new ArrayList<>();

    /**
     * 添加剩余的天数，我按照字符串来算。也即是：可用天数。车位还剩余多少天。
     */
    private String availableDay;

    /**
     * 车位的 end 时间
     */
    private Date parkingEndTime;

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getParkSpaceStr() {
        return parkSpaceStr;
    }

    public void setParkSpaceStr(String parkSpaceStr) {
        this.parkSpaceStr = parkSpaceStr;
    }

    public String getParkingSpaceNo() {
        return parkingSpaceNo;
    }

    public void setParkingSpaceNo(String parkingSpaceNo) {
        this.parkingSpaceNo = parkingSpaceNo;
    }

    public String getParkingSpaceId() {
        return parkingSpaceId;
    }

    public void setParkingSpaceId(String parkingSpaceId) {
        this.parkingSpaceId = parkingSpaceId;
    }

    public List<ParkingLicenseBean> getCarNoList() {
        return carNoList;
    }

    public void setCarNoList(ArrayList<ParkingLicenseBean> carNoList) {
        this.carNoList = carNoList;
    }

    public String getAvailableDay() {
        return availableDay;
    }

    public void setAvailableDay(String availableDay) {
        this.availableDay = availableDay;
    }

    public Date getParkingEndTime() {
        return parkingEndTime;
    }

    public void setParkingEndTime(Date parkingEndTime) {
        this.parkingEndTime = parkingEndTime;
    }

    @Nullable
    @Override
    public List<BaseNode> getChildNode() {
        return childNode;
    }

//    public void setChildNode(List<BaseNode> childNode) {
//        this.childNode = childNode;
//    }

    public void setCarNoList(List<ParkingLicenseBean> carNoList) {
        this.carNoList = carNoList;
    }
}
